<include file="public:top" />
<!--编辑菜单-->
<form class="layui-form layui-form-pane" action="" style="padding:20px;">
	<input type="hidden" name="pid" />
	<input type="hidden" name="id" value="{$info.id}" />
  <div class="layui-form-item">
    <label class="layui-form-label">上级分类</label>
    <div class="layui-input-block">
      <select name="pid">
    		<option value="0">顶级分类</option>
    		<volist name="catelist" id="val" >
    			<option value="{$val.id}" <if condition="$info['pid'] eq $val['id']"> selected=""</if>>{$val.name}</option>
    				<volist name="val['erji']" id="vo">
    					<option value="{$vo.id}" <if condition="$info['pid'] eq $vo['id']"> selected=""</if>>&nbsp;&nbsp;&nbsp;├─ {$vo.name}</option>
    				</volist>
    		</volist>
	   </select>
    </div>
  </div>
 
  <div class="layui-form-item">
    <label class="layui-form-label">分类名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" id="name" lay-verify="name" value="{$info.name}" placeholder="请输入" class="layui-input" >
    </div>
  </div>
   
   
  <div class="layui-form-item"  pane="">
    <label class="layui-form-label">{:L('enabled')}</label>
    <div class="layui-input-block">
      <input type="radio" title="{:L('yes')}" name="status" value="1" <if condition="$info.status eq 1">checked</if>>
      <input type="radio" title="{:L('no')}" name="status" value="0" <if condition="$info.status eq 0">checked</if>>
    </div>
  </div>
  <div class="layui-form-item">
        <label class=""></label>
        <div class="layui-input-block">
        <button class="layui-btn" lay-submit="" lay-filter="content_edit">提交保存</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="__PUBLIC__/admin/layui/layui.js"></script>
<script>
layui.use(['layer','jquery','form','element','layedit'], function () {

  Oper.initUpdate(layui, '新闻分类', 'content_edit', 'article_cate/edit');
});
</script>
</body>
</html>